import { EntitySchema } from 'typeorm'

export default new EntitySchema({
  name: 'bankGold',
  columns: {
    id: {
      type: 'int',
      primary: true,
      generated: true
    },
    type: {
      type: 'varchar',
      length: 10,
      comment: '银行类型'
    },
    createTime: {
      type: 'datetime',
      comment: '当前日期'
    },
    updateTime: {
      type: 'datetime',
      comment: '更新日期'
    },
    price: {
      type: 'decimal',
      comment: '价格',
      precision: 6,
      scale: 3
    }
  }
})
